<?php
class Template extends AppModel {

    public $name = 'Template';
    
    public function get_list(){
        $country_list = $this->find('list',array('fields'=>array('name')));
        return $country_list;
    }
    
    public static function get_name($id){
        $country = ClassRegistry::init('Template');
        $country->id = $id;
        return $country->field('name');
    }
}